package com.guoguo.service.impl;

import com.github.pagehelper.PageHelper;
import com.guoguo.base.PageBean;
import com.guoguo.base.PaginationContext;
import com.guoguo.entity.Attention;
import com.guoguo.entity.vo.AttentionVO;
import com.guoguo.mapper.AttentionMapper;
import com.guoguo.service.AttentionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by KLSD on 2017/9/12.
 */
@Service
public class AttentionServiceImpl implements AttentionService {
    @Autowired
    private AttentionMapper atentionMapper;

    @Override
    public List<AttentionVO> getAttention(int attType) {
        return atentionMapper.getAttention(attType);
    }


    @Override
    public int deleteAttention(String userId, String modelId) {
        return atentionMapper.deleteAttention(userId, modelId);

    }

    @Override
    public int saveAttention(Attention attention) {
        return atentionMapper.saveAttention(attention);
    }

    @Override
    public Attention findAttentionByIds(Attention attention) {
        return atentionMapper.findAttentionByIds(attention);
    }
}
